<template>
  <div>
    <van-nav-bar placeholder fixed :title="title" left-arrow @click-left="onClickLeft" />
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
defineProps<{
  title: string;
}>();
const router = useRouter();
const onClickLeft = () => {
  router.go(-1);
};
</script>

<style lang="scss" scoped>
:deep .van-nav-bar {
  background-color: #e93323;
  .van-nav-bar__title {
    color: #fff;
  }
  .van-icon {
    color: #fff;
    font-size: 18px;
  }
}
</style>
